package com.yike.user.service;

import com.yike.user.entity.CategoryCount;
import com.yike.user.param.CategoryCountPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 商品分类统计 服务类
 *
 * @author Sakura
 * @since 2024-11-19
 */
public interface CategoryCountService extends BaseService<CategoryCount> {

    /**
     * 保存
     *
     * @param categoryCount
     * @return
     * @throws Exception
     */
    boolean saveCategoryCount(CategoryCount categoryCount) throws Exception;

    /**
     * 修改
     *
     * @param categoryCount
     * @return
     * @throws Exception
     */
    boolean updateCategoryCount(CategoryCount categoryCount) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteCategoryCount(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param categoryCountPageParam
     * @return
     * @throws Exception
     */
    Paging<CategoryCount> getCategoryCountPageList(CategoryCountPageParam categoryCountPageParam) throws Exception;

}
